<div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
    <div class="menu_section">
        @foreach(app('hd-menu')->all() as $moduleNmae=>$group)
        <h3>{{$moduleNmae}}</h3>
        <ul class="nav side-menu">
            @foreach($group as $group)
                @if(\HDModule::hadPermission($group['permission'],'admin'))
            <li><a><i class="{{$group['icon']}}"></i> {{$group['title']}} <span class="fa fa-chevron-down"></span></a>
                <ul class="nav child_menu">
                    @foreach($group['menus'] as $v)
                        @if(\HDModule::hadPermission($v['permission'],'admin'))
                            <li>
                                <a href="{{$v['url']}}">{{$v['title']}}</a>
                            </li>
                        @endif
                    @endforeach
                </ul>
            </li>
                @endif
            @endforeach
        </ul>
        @endforeach
    </div>

</div>
